#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<string>
using namespace std;

int main()
{
	int i = 0;
	auto k = i;
	cout << k<<endl;
	string s1 = "hello world";
	auto* ptr2 = &i;
	auto ptr3 = &i;
	auto& reference = i;
	auto& reference1 = "hello world";
	for (int i = 0; i < s1.size(); i++)
	{
		cout << s1[i] << " ";


	}
	cout << endl;
	for (auto& e : s1)
	{
		++e;
		cout << e << " ";
	}
	cout << endl;
	string::iterator ptr = s1.begin();
	//auto ptr = s1.begin();
	while (ptr != s1.end())
	{
		cout << *ptr << " ";
		ptr++;

	}
	cout << endl;
	string s2("dadadada", 3);
	cout << s2;
	return 0;





}